package com.dailyblue.java.spring.mvc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/fifth")
@RestController  // @Controller + @ResponseBody
public class FifthController {

    @GetMapping("/a")
    public String a() {
        return "aaa";
    }

    @GetMapping("/b")
    public String b() {
        return "1";
    }
}
